# my_list=['jiajia',2006,True]
# print(my_list)
# print(type(my_list))

# my_list = ['jiajia', 2006, True]
# print(my_list[0],my_list[-3])
# print(my_list[1],my_list[-2])
# print(my_list[2],my_list[-1])
#
# my_num=[[2,28],[12,12]]
# print(my_num[-2][1])

# my_list=['jiajia',2006,True]
# index=my_list.index('jiajia')
# print(f"jiajia在列表中的下标索引值是：{index}")
#
# my_list[1]="0228"
# print(my_list)
#
# my_list.insert(1,"2006")
# print(my_list)
#
# my_list.append("perfect")
# print(my_list)
#
# my_list2=[1212,1123]
# my_list.extend(my_list2)
# print(my_list)
#
# del my_list[-1]
# print(my_list)
# my_list3=my_list.pop(-1)
# print(my_list,my_list3)
#
# my_list4=["2006","02","28","02"]
# my_list4.remove("02")
# print(my_list4)

# my_list4.clear()
# print(my_list4)
#
# my_list5=["2002","12","12"]
# print(my_list5.count("12"))
#
# count=len(my_list5)
# print(count)




def list_while_func():
    """
    while
    :return:None
    """
    my_list = ['jiajia', 2006, True]
    index=0
    while index<len(my_list):
        print(my_list[index])
        index+=1

list_while_func()

print()

def list_for_func():
    """
    for
    :return: None
    """
    my_list = ['jiajia', 2006, True]
    for element in my_list:
        print(element)
list_for_func()
    